<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IndyMosaic.Core.Data.PaginatedList<IndyMosaic.Models.Blog.Entry>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Blog
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="rssFeed">
        <%= Html.ActionLink("rss", "RSS") %>
    </div>
    <% foreach (var entry in Model)
       {
            Html.RenderPartial("EntrySummary", entry);       
       } %>
    
    <div>
        <% if (Model.HasPreviousPage)
           { %>
         
        <%= Html.RouteLink("<<<", "BlogEntries", new { page = (Model.PageIndex - 1) })%>
         
        <% } %>
         
        <% if (Model.HasNextPage) {  %>
         
        <%= Html.RouteLink(">>>", "BlogEntries", new { page = (Model.PageIndex + 1) })%>
         
        <% } %>   
    </div>
</asp:Content>

